<extend name="Base/common"/>
<block name="style">
    <link href="__CSS__/jxgl.css" type="text/css" rel="stylesheet">
</block>
<block name="header">
   <include file="Public/_nav"/>
</block>
<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-xs-2">
            <div class="common_block_border">                
                <div class="content ">
                <include file="Public/sidebar"  />
                </div>
            </div>
        </div>
        <!-- 左侧菜end -->

        <!-- 右侧内容开始 -->
        <div class="col-xs-10">
        <div class="common_block_border">
        <ul class="nav nav-tabs">
          <li><a href="{:U('Jshj/index')}">教师获奖登记</a></li>
          <li><a href="{:U('Jshj/hjhz')}">教师获奖汇总</a></li>
          <li class="active"><a href="{:U('Lwfb/index')}">教师论文发表登记</a></li>
          <li><a href="{:U('Lwfb/hz')}">教师论文发表汇总</a></li>
        </ul>

  <!-- 登记表单start -->
     <div class="right_box">
      <form class="form-horizontal form-condensed" role="form" method="post" action="{:U('index')}" >
        <legend>教学管理 : <span style="color:#CC4444"> 教师论文发表登记</span></legend>
        <div class="form-group">
          <label class="col-md-2 control-label required">作者</label>
          <div class="col-md-3">
            <input name="teacher" id="teacher" value="" class="form-control" placeholder="请输入作者姓名"type="text" style="ime-mode:active">
          </div>
          <div class="col-md-offset-2 col-md-3">
          <a href="{:U('Jshj/index')}" class="btn btn-success ">&nbsp;论文评奖(点此登记)&nbsp;</a></div>
        </div>
        <div class="form-group">
          <label class="col-md-2 control-label required">文章标题</label>
          <div class="col-md-9 has-error">
             <input name="title" id="title" value="" class="form-control" placeholder="请输入文章标题" type="text" style="ime-mode:active">         
          </div>
        </div>
        <div class="form-group">
                  <label class="col-md-2 control-label required">发表日期</label>
          <div class="col-md-3">
              <input name="date" id="date" value="{:date(Y)}-{:date(m)}" class="time form-control input-group date form_datetime" type="text" style="ime-mode:inactive">
            <link href="__ZUI__/lib/datetimepicker/datetimepicker.min.css" rel="stylesheet" type="text/css">
            <script src="__ZUI__/lib/datetimepicker/datetimepicker.min.js"></script>
            <script>

                $('.time').datetimepicker({
                    language:  'zh-CN',
                    weekStart: 1,
                    todayBtn:  1,
                    autoclose: 1,
                    todayHighlight: 1,
                    startView: 2,
                    minView: 2,
                    forceParse: 0,
                    format: 'yyyy-mm'
                });
            </script>           
          </div>
          <label class="col-md-2 control-label required">报刊名称</label>
          <div class="col-md-4">
            <input name="bkmc" id="bkmc" value="" class="form-control" type="text" style="ime-mode:active">
          </div>

        </div>

        <div class="form-group">
          <label class="col-md-2 control-label required">国际刊号</label>
          <div class="col-md-3">
           <input name="gjkh" id="gjkh" value="ISSN" class="form-control" type="text" style="ime-mode:inactive">
          </div>
          <label class="col-md-2 control-label required">邮发代号</label>
          <div class="col-md-4">
             <input name="yfdh" id="yfdh" value="" class="form-control" type="text" style="ime-mode:inactive">
          </div>
        </div>
        <div class="form-group">
          <label class="col-md-2 control-label required">国内刊号</label>
          <div class="col-md-3">
           <input name="gnkh" id="gnkh" value="CN" class="form-control" type="text" style="ime-mode:inactive">
          </div>
          <label class="col-md-2 control-label ">备注</label>
          <div class="col-md-4">
             <input name="bz" id="bz" value="" class="form-control" type="text" style="ime-mode:active">
          </div>
        </div>

        <div class="form-group">
          <label class="col-md-2 control-label">摘要</label>
          <div class="col-md-9">
            <textarea name="abstract" id="abstract" rows="8" class="form-control" style="ime-mode:active"></textarea>
          </div>
        </div>

        <div class="form-group">
           <div class="col-md-offset-2 col-md-9 has-error">            
             <div class="help-block alert alert-warning">发表日期仅填年月即可，如2016年6月23日，填写2016-06！<br/></div>
          </div>
        </div>


        <div class="form-group">
          <div class="col-md-offset-2 col-md-2">
             <input id="submit" class="btn btn-block btn-primary" value="提交保存" data-loading="稍候..." type="submit"> 
             <input type="hidden" name="year" value="{$curYear}">            
             <input name="bm" id="bm" value="小学部" type="hidden">
          </div>
        </div>
      </form>
    </div>
     <!-- 登记表单end -->
<hr/>
          <!-- 查询表单start -->
                <div class="right_box">
                    <form method='post' id="form1" name="form1"  action="{:U('Lwfb/search')}" class="form-horizontal form-condensed">
                       <div class="form-group">
                       <label class="col-md-1 control-label" for="teacher">姓名:</label>
                       <div class="col-md-2">
                       <input type="text" class="form-control" name="teacher" value="{$ateacher}">
                       </div>
                 
                       <div class="col-md-2">
                       <button type="submit" class="btn btn-primary">&nbsp;查询&nbsp;</button>
                       </div>
                  </form> 
                </div>
                <!--  查询表单end -->

      <div class="right_box">
      <table class="table table-bordered">
        <thead>
          <tr>
            <th>#</th>
            <th>学年</th>
            <th>出版日期</th>
            <th>作者</th>
            <th>文章标题</th>
            <th>报刊名称</th>
            <th>登记日期</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
        <volist name='list' id='vo'>
          <tr>
            <td>{$i}</td>
            <td>{$vo.year}学年</td>
            <td>
            <if condition="($vo.status neq 1)"> 
            <span style="color:red"> {$vo.date}</span>
             <else/>
            {$vo.date}
            </if>
            </td>
            <td>{$vo.teacher}</td>
            <td>{$vo.title}</td>
            <td>{$vo.bkmc}</td>
            <td>{$vo.create_time|date="Y-m-d",###}</td>
            <td><a href="{:U('Lwfb/edit?id='.$vo['id'])}" ><i class="icon icon-edit"></i></a>｜
                <a href= "{:U('Lwfb/delete?id='.$vo['id'])}"  onclick="return confirm('删除后不可恢复，你确认要删除吗？')"><i class="icon icon-trash"></i></a></td>
          </tr>
          </volist>
        </tbody>
      </table>

    </div>
    <div class="right_box text-right"> 
      &nbsp; {:getPagination($totalPageCount,$r)}
    </div>
    </div>
        <!-- 右侧内容结束 -->  
      </div>   

   
</block>
